<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
use Hyperf\HttpServer\Router\Router;


Router::addRoute(['GET', 'POST', 'HEAD'], '/', 'App\Controller\IndexController@index');

Router::get('/favicon.ico', function () {
    return '';
});
Router::addGroup(
    '/api', function () {
    //用户
    Router::addRoute(['POST'], '/authority/user/login', 'App\Controller\authority\UserController@login'); //用户登录
    Router::addRoute(['GET'], '/authority/user/refreshPermissions', 'App\Controller\authority\UserController@refreshPermissions'); //用户获取权限
    //公共
    Router::addRoute(['GET'], '/common/actor', 'App\Controller\BaseController@actor');//公司列表
    Router::addRoute(['GET'], '/common/company', 'App\Controller\BaseController@company');//公司列表
    Router::addRoute(['GET'], '/common/module', 'App\Controller\BaseController@module');//模块列表
    Router::addRoute(['GET'], '/common/auth-role', 'App\Controller\BaseController@authRole');//角色列表
    Router::addRoute(['GET'], '/common/menu', 'App\Controller\BaseController@menu');//菜单列表
    Router::addRoute(['GET'], '/common/applet', 'App\Controller\BaseController@applet');//小程序列表
    Router::addRoute(['GET'], '/common/applet/{type}', 'App\Controller\BaseController@applet');//小程序列表
    Router::addRoute(['GET'], '/common/playlet', 'App\Controller\BaseController@playlet');//短剧列表
    Router::addRoute(['GET'], '/common/playletOrdinary', 'App\Controller\BaseController@playletOrdinary');//短剧列表
    Router::addRoute(['GET'], '/common/playletBlocksRanking', 'App\Controller\BaseController@playletBlocksRanking');//短剧列表
    Router::addRoute(['GET'], '/common/weCom', 'App\Controller\BaseController@weCom');//短剧列表
    Router::addRoute(['GET'], '/common/templete', 'App\Controller\BaseController@templete');//公共模板列表
    Router::addRoute(['GET'], '/common/platform', 'App\Controller\BaseController@platform');//投放平台
    Router::addRoute(['GET'], '/common/templeteList', 'App\Controller\BaseController@templeteList');//默认模板
    Router::addRoute(['GET'], '/common/rechangeCover', 'App\Controller\BaseController@rechangeCover');//充值模板默认值
    Router::addRoute(['GET'], '/common/backhaulSetting/{id:\d+}', 'App\Controller\BaseController@backhaulSetting');//回传监测配置列表
    Router::addRoute(['GET'], '/common/tag', 'App\Controller\BaseController@tag');//回传监测配置列表
    Router::addRoute(['GET'], '/common/refundReason/{id:\d+}', 'App\Controller\BaseController@refundReason');//微信退款原因
    Router::addRoute(['GET'], '/common/appletType', 'App\Controller\BaseController@appletType');//小程序类型列表
    Router::addRoute(['GET'], '/common/appletCoupon/{applet_id:\d+}', 'App\Controller\BaseController@appletCoupon');//小程序类型列表
    //小程序配置
    Router::addRoute(['GET'], '/common/templateType', 'App\Controller\BaseController@templateType');//小程序配置模版类型
    Router::addRoute(['GET'], '/common/jumpType', 'App\Controller\BaseController@jumpType');//小程序配置公共跳转类型
    //剧集集数
    Router::addRoute(['GET'], '/delivery/playlet/episodes/{id:\d+}', 'App\Controller\delivery\PlayletController@episodes');//剧集集数
    //剧集集数
    Router::addRoute(['GET'], '/playlet/playlet/episodes/{id:\d+}', 'App\Controller\playlet\PlayletController@episodes');//剧集集数
    //运营这个小程序下的短剧
    Router::addRoute(['GET'], '/playlet/applet/playletList/{id:\d+}', 'App\Controller\playlet\AppletController@playletList');//这个小程序下的短剧更新
    //投放这个小程序下的短剧
    Router::addRoute(['GET'], '/delivery/applet/playletList/{id:\d+}', 'App\Controller\delivery\AppletController@playletList');//这个小程序下的短剧更新
    //获取公司所绑定的小程序
    Router::addRoute(['GET'], '/playlet/company/getApplet/{id:\d+}', 'App\Controller\playlet\CompanyController@getApplet');//获取公司所绑定的小程序
    //获取公司所绑定的小程序
    Router::addRoute(['GET'], '/playlet/company/getApplet/{id:\d+}/{spread_platform_id:\d+}', 'App\Controller\playlet\CompanyController@getApplet');//获取公司所绑定的小程序
    //获取公司所绑定的充值模板
    Router::addRoute(['GET'], '/playlet/dataSpread/getTemplete/{company_id:\d+}/{type:\d+}', 'App\Controller\playlet\DataSpreadController@getTemplete');//获取公司所绑定的充值模板
    //短剧绑定
    Router::addRoute(['GET'], '/playlet/playletbind/update/{id:\d+}', 'App\Controller\playlet\PlayletBindController@update');//短剧绑定
    //获取公司所绑定的小程序
    Router::addRoute(['GET'], '/delivery/company/getApplet', 'App\Controller\delivery\CompanyController@getApplet');//获取公司所绑定的小程序
    //获取公司所绑定的小程序
    Router::addRoute(['GET'], '/delivery/company/getApplet/{spread_platform_id:\d+}', 'App\Controller\delivery\CompanyController@getApplet');//获取公司所绑定的小程序
    //获取公司所绑定的充值模板
    Router::addRoute(['GET'], '/delivery/dataSpread/getTemplete/{type:\d+}', 'App\Controller\delivery\DataSpreadController@getTemplete');//获取公司所绑定的充值模板
//    Router::addRoute(['GET'], '/test', 'App\Controller\playlet\PlayletEpisodesController@test');//推广链接
    //获取公司批量修改
    Router::addRoute(['GET'], '/delivery/dataSpread/deliverySettings/{applet_id:\d+}', 'App\Controller\delivery\DataSpreadController@deliverySettings');//推广链接
    //获取公司批量修改
    Router::addRoute(['GET'], '/playlet/dataSpread/deliverySettings/{company_id:\d+}/{applet_id:\d+}', 'App\Controller\playlet\DataSpreadController@deliverySettings');//推广链接
    //CPS 查询短剧
    Router::addRoute(['GET'], '/statistics/getplayletInfo', 'App\Controller\statistics\StatisticsController@getplayletInfo'); //CPS 查询短剧
    //投放系统 查询短剧
    Router::addRoute(['GET'], '/delivery/getplayletInfo', 'App\Controller\delivery\OrderStatisticsController@getplayletInfo'); //投放系统 查询短剧
    //查看用户购买剧记录
    Router::addRoute(['POST'], '/delivery/UserStatistics/getUserBuy', 'App\Controller\delivery\UserStatisticsController@getUserBuy'); //查看用户购买记录
    //查看用户充值记录
    Router::addRoute(['POST'], '/delivery/UserStatistics/getUserRecharge', 'App\Controller\delivery\UserStatisticsController@getUserRecharge'); //查看用户充值记录
    //查看用户观看记录
    Router::addRoute(['POST'], '/delivery/UserStatistics/getUserView', 'App\Controller\delivery\UserStatisticsController@getUserView'); //看用户观看记录
    //查看此小程序的推广链接
    Router::addRoute(['POST'], '/delivery/UserStatistics/getSearchSpread', 'App\Controller\delivery\UserStatisticsController@getSearchSpread'); //查看此小程序的推广链接
    //查看此小程序的前端配置
    Router::addRoute(['GET'], '/playlet/playletBlocksRanking/update/{id:\d+}', 'App\Controller\playlet\PlayletBlocksRankingController@update');//查看此小程序的前端配置

    //dashboard
    Router::addRoute(['GET'], '/delivery/dashboard', 'App\Controller\delivery\DashboardController@index');//dashboard

});


Router::addGroup(
    '/api', function () {
    //获取订单，获取用户，推广链接
    Router::addRoute(['POST'], '/system/getUserStatis', 'App\Controller\external\StatisController@getUser'); //投放系统 查询短剧
    Router::addRoute(['POST'], '/system/getRefluxUserStatis', 'App\Controller\external\StatisController@getRefluxUser'); //投放系统 查询用户
    Router::addRoute(['POST'], '/system/getOrderStatis', 'App\Controller\external\StatisController@getOrder'); //投放系统 查询短剧
    Router::addRoute(['POST'], '/system/getSpreadStatis', 'App\Controller\external\StatisController@getSpread'); //投放系统 查询短剧
    Router::addRoute(['POST'], '/system/getRefundOrderStatis', 'App\Controller\external\StatisController@getRefundOrder'); //投放系统 查询短剧
    Router::addRoute(['POST'], '/system/getSpreadBindAccount', 'App\Controller\external\StatisController@getSpreadBindAccount'); //投放系统 查询推广绑定

    Router::addRoute(['POST'], '/empower/empower', 'App\Controller\external\EmpowerController@index'); //投放系统 查询短剧
    Router::addRoute(['POST'], '/empower/getwxOriginalUrlTest', 'App\Controller\external\EmpowerController@getwxOriginalUrlTest'); //投放系统 查询短剧
    },['middleware' => [App\Middleware\ValidateMiddleware::class]]

);

Router::addGroup(
    '/api', function () {
    //用户
    Router::addRoute(['GET'], '/authority/user/update/{id:\d+}', 'App\Controller\authority\UserController@update');//用户更新
    //角色
    Router::addRoute(['GET'], '/authority/autoRule/update/{id:\d+}', 'App\Controller\authority\AuthRoleController@update');//角色更新
    //菜单
    Router::addRoute(['GET'], '/authority/menu/update/{id:\d+}', 'App\Controller\authority\MenuController@update');//菜单更新
    //公司
    Router::addRoute(['GET'], '/playlet/company/update/{id:\d+}', 'App\Controller\playlet\CompanyController@update');//公司更新
    //演员
    Router::addRoute(['GET'], '/playlet/actor/update/{id:\d+}', 'App\Controller\playlet\ActorController@update');//演员更新
    //小程序
    Router::addRoute(['GET'], '/playlet/applet/update/{id:\d+}', 'App\Controller\playlet\AppletController@update');//小程序更新
    //剧集
    Router::addRoute(['GET'], '/playlet/playlet/update/{id:\d+}', 'App\Controller\playlet\PlayletController@update');//剧集更新
    //菜单角色列表
    Router::addRoute(['GET'], '/authority/autoRule/menuList/{id:\d+}', 'App\Controller\authority\AuthRoleController@menuList');//菜单角色列表
    //剧集集数更新
    Router::addRoute(['GET'], '/playlet/episodes/update/{id:\d+}', 'App\Controller\playlet\PlayletEpisodesController@update');//剧集集数更新
    //充值模板
    Router::addRoute(['GET'], '/playlet/rechargeTemplate/update/{id:\d+}', 'App\Controller\playlet\RechargeTemplateController@update');//充值模板
    //小程序与短剧绑定
    Router::addRoute(['GET'], '/playlet/applet/bindPlaylet/{id:\d+}', 'App\Controller\playlet\AppletController@bindPlaylet');//小程序绑定短剧
    //小程序与短剧绑定
    Router::addRoute(['GET'], '/playlet/applet/bindPlayletDelivery/{id:\d+}', 'App\Controller\playlet\AppletController@bindPlayletDelivery');//小程序绑定短剧
    //推广链接更新
    Router::addRoute(['GET'], '/playlet/dataSpread/update/{id:\d+}', 'App\Controller\playlet\DataSpreadController@update');//推广链接更新
    //回传监测配置
    Router::addRoute(['GET'], '/playlet/dataBackhaulSetting/update/{id:\d+}', 'App\Controller\playlet\DataBackhaulSettingController@update');//推广链接更新
    //推广连接-监测链接
    Router::addRoute(['GET'], '/playlet/dataSpread/monitoringLink/{id:\d+}', 'App\Controller\playlet\DataSpreadController@monitoringLink');//监测链接更新
    //推广连接-推广链接
    Router::addRoute(['GET'], '/playlet/dataSpread/promotionLink/{id:\d+}', 'App\Controller\playlet\DataSpreadController@promotionLink');//推广链接
    //小程序导航配置详情
    Router::addRoute(['GET'], '/playlet/playletBlocks/update/{id:\d+}', 'App\Controller\playlet\PlayletBlocksController@update');//小程序导航配置详情
    //banner详情
    Router::addRoute(['GET'], '/playlet/baseBanner/update/{id:\d+}', 'App\Controller\playlet\BaseBannerController@update');//banner详情
    //企业微信详情详情
    Router::addRoute(['GET'], '/playlet/weCom/update/{id:\d+}', 'App\Controller\playlet\WeComController@update');//企业微信详情详情
    //小程序优惠券详情
    Router::addRoute(['GET'], '/playlet/appletCoupon/update/{id:\d+}', 'App\Controller\playlet\AppletCouponController@update');//小程序优惠券详情
    //小程序优惠券详情
    Router::addRoute(['GET'], '/playlet/appletCouponPromotionActivity/update/{id:\d+}', 'App\Controller\playlet\AppletCouponPromotionActivityController@update');//小程序优惠券详情
    //小程序优惠券库存
    Router::addRoute(['GET'], '/playlet/appletCoupon/updateMetaStock/{id:\d+}', 'App\Controller\playlet\AppletCouponController@updateMetaStock');//小程序优惠券更新
    //推广连接-监测链接
    Router::addRoute(['GET'], '/delivery/dataSpread/monitoringLink/{id:\d+}', 'App\Controller\delivery\DataSpreadController@monitoringLink');//监测链接更新
    //推广连接-推广链接
    Router::addRoute(['GET'], '/delivery/dataSpread/promotionLink/{id:\d+}', 'App\Controller\delivery\DataSpreadController@promotionLink');//推广链接
    //回传监测配置
    Router::addRoute(['GET'], '/delivery/dataBackhaulSetting/update/{id:\d+}', 'App\Controller\delivery\DataBackhaulSettingController@update');//推广链接更新
    //充值模板
    Router::addRoute(['GET'], '/delivery/rechargeTemplate/update/{id:\d+}', 'App\Controller\delivery\RechargeTemplateController@update');//充值模板
    //推广链接更新
    Router::addRoute(['GET'], '/delivery/dataSpread/update/{id:\d+}', 'App\Controller\delivery\DataSpreadController@update');//推广链接更新
    //短剧规定推广链接的付费集数
    Router::addRoute(['GET'], '/playlet/playlet/limitNumber/{id:\d+}', 'App\Controller\playlet\PlayletController@limitNumber');//短剧规定推广链接的付费集数
    //短剧授权书到期时间
    Router::addRoute(['GET'], '/playlet/playlet/registrationTime/{id:\d+}', 'App\Controller\playlet\PlayletController@registrationTime');//短剧授权书到期时间
    //短剧与企业微信绑定
    Router::addRoute(['GET'], '/playlet/playlet/weComBind/{id:\d+}', 'App\Controller\playlet\PlayletController@weComBind');//短剧与企业微信绑定
    //查看所有投放组员的数据
    Router::addRoute(['GET'], '/delivery/delivery/teamList', 'App\Controller\delivery\DeliveryController@teamList');//短剧规定推广链接的付费集数
    //查看订单回传规则
    Router::addRoute(['GET'], '/delivery/payment/backhaulInfo/{id:\d+}', 'App\Controller\delivery\PaymentController@backhaulInfo');//查看订单回传规则
}, ['middleware' => [\App\Middleware\AuthMiddleware::class]]);


//ad
Router::addGroup(
    '/api', function () {

     //修改密码
    Router::addRoute(['POST'], '/authority/user/changePwd', 'App\Controller\authority\UserController@changePwd'); //用户修改密码
    Router::addRoute(['POST'], '/authority/user/changeRealName', 'App\Controller\authority\UserController@changeRealName'); //用户修改昵称
    //用户管理
    Router::addRoute(['GET'], '/authority/user', 'App\Controller\authority\UserController@index'); //用户列表
    Router::addRoute(['POST'], '/authority/user/create', 'App\Controller\authority\UserController@create');//用户创建
    Router::addRoute(['POST'], '/authority/user/update/{id:\d+}', 'App\Controller\authority\UserController@update');//用户更新
    Router::addRoute(['DELETE'], '/authority/user/delete/{id:\d+}', 'App\Controller\authority\UserController@delete');//角色删除
    //角色列表
    Router::addRoute(['GET'], '/authority/autoRule', 'App\Controller\authority\AuthRoleController@index'); //角色列表
    Router::addRoute(['POST'], '/authority/autoRule/create', 'App\Controller\authority\AuthRoleController@create');//角色创建
    Router::addRoute(['POST'], '/authority/autoRule/update/{id:\d+}', 'App\Controller\authority\AuthRoleController@update');//角色更新
    Router::addRoute(['DELETE'], '/authority/autoRule/delete/{id:\d+}', 'App\Controller\authority\AuthRoleController@delete');//角色删除
    Router::addRoute(['POST'], '/authority/autoRule/authorizeSave', 'App\Controller\authority\AuthRoleController@authorizeSave');//菜单权限修改
    //菜单列表
    Router::addRoute(['GET'], '/authority/menu', 'App\Controller\authority\MenuController@index'); //菜单列表
    Router::addRoute(['POST'], '/authority/menu/create', 'App\Controller\authority\MenuController@create');//菜单创建
    Router::addRoute(['POST'], '/authority/menu/update/{id:\d+}', 'App\Controller\authority\MenuController@update');//菜单更新
    Router::addRoute(['DELETE'], '/authority/menu/delete/{id:\d+}', 'App\Controller\authority\MenuController@delete');//菜单删除
    //公司列表
    Router::addRoute(['GET'], '/playlet/company', 'App\Controller\playlet\CompanyController@index'); //公司列表
    Router::addRoute(['POST'], '/playlet/company/create', 'App\Controller\playlet\CompanyController@create');//公司创建
    Router::addRoute(['POST'], '/playlet/company/update/{id:\d+}', 'App\Controller\playlet\CompanyController@update');//公司更新
    Router::addRoute(['DELETE'], '/playlet/company/delete/{id:\d+}', 'App\Controller\playlet\CompanyController@delete');//公司删除
    //演员列表
    Router::addRoute(['GET'], '/playlet/actor', 'App\Controller\playlet\ActorController@index'); //演员列表
    Router::addRoute(['POST'], '/playlet/actor/create', 'App\Controller\playlet\ActorController@create');//演员列创建
    Router::addRoute(['POST'], '/playlet/actor/update/{id:\d+}', 'App\Controller\playlet\ActorController@update');//演员更新
    Router::addRoute(['DELETE'], '/playlet/actor/delete/{id:\d+}', 'App\Controller\playlet\ActorController@delete');//演员删除
    //小程序列表
    Router::addRoute(['GET'], '/playlet/applet', 'App\Controller\playlet\AppletController@index'); //小程序列表
    Router::addRoute(['POST'], '/playlet/applet/create', 'App\Controller\playlet\AppletController@create');//小程序创建
    Router::addRoute(['POST'], '/playlet/applet/update/{id:\d+}', 'App\Controller\playlet\AppletController@update');//小程序更新
    Router::addRoute(['DELETE'], '/playlet/applet/delete/{id:\d+}', 'App\Controller\playlet\AppletController@delete');//小程序删除
    Router::addRoute(['POST'], '/playlet/applet/bindPlaylet/{id:\d+}', 'App\Controller\playlet\AppletController@bindPlaylet');//小程序与短剧绑定
    Router::addRoute(['POST'], '/playlet/applet/bindPlayletDelivery/{id:\d+}', 'App\Controller\playlet\AppletController@bindPlayletDelivery');//小程序与短剧绑定

    //企业微信账号列表
    Router::addRoute(['GET'], '/playlet/weCom', 'App\Controller\playlet\WeComController@index'); //公司列表
    Router::addRoute(['POST'], '/playlet/weCom/create', 'App\Controller\playlet\WeComController@create');//公司创建
    Router::addRoute(['POST'], '/playlet/weCom/update/{id:\d+}', 'App\Controller\playlet\WeComController@update');//公司更新
    Router::addRoute(['DELETE'], '/playlet/weCom/delete/{id:\d+}', 'App\Controller\playlet\WeComController@delete');//公司删除

    //小程序优惠券列表
    Router::addRoute(['GET'], '/playlet/appletCoupon', 'App\Controller\playlet\AppletCouponController@index'); //小程序优惠券列表
    Router::addRoute(['POST'], '/playlet/appletCoupon/create', 'App\Controller\playlet\AppletCouponController@create');//小程序优惠券创建
    Router::addRoute(['POST'], '/playlet/appletCoupon/update/{id:\d+}', 'App\Controller\playlet\AppletCouponController@update');//小程序优惠券更新
    Router::addRoute(['POST'], '/playlet/appletCoupon/updateMetaStock/{id:\d+}', 'App\Controller\playlet\AppletCouponController@updateMetaStock');//小程序优惠券更新
    Router::addRoute(['POST'], '/playlet/appletCoupon/updateMetaStatus/{id:\d+}', 'App\Controller\playlet\AppletCouponController@updateMetaStatus');//小程序优惠券更新
    Router::addRoute(['DELETE'], '/playlet/appletCoupon/delete/{id:\d+}', 'App\Controller\playlet\AppletCouponController@delete');//小程序优惠券删除

    //小程序优惠券列表
    Router::addRoute(['GET'], '/playlet/appletCouponPromotionActivity', 'App\Controller\playlet\AppletCouponPromotionActivityController@index'); //营销活动列表
    Router::addRoute(['POST'], '/playlet/appletCouponPromotionActivity/create', 'App\Controller\playlet\AppletCouponPromotionActivityController@create');//营销活动创建
    Router::addRoute(['POST'], '/playlet/appletCouponPromotionActivity/update/{id:\d+}', 'App\Controller\playlet\AppletCouponPromotionActivityController@update');//营销活动更新
    Router::addRoute(['POST'], '/playlet/appletCouponPromotionActivity/updateStatus/{id:\d+}', 'App\Controller\playlet\AppletCouponPromotionActivityController@updateStatus');//营销活动更新
    Router::addRoute(['DELETE'], '/playlet/appletCouponPromotionActivity/delete/{id:\d+}', 'App\Controller\playlet\AppletCouponPromotionActivityController@delete');//营销活动删除


    //短剧列表
    Router::addRoute(['GET'], '/playlet/playlet', 'App\Controller\playlet\PlayletController@index'); //短剧列表
    Router::addRoute(['POST'], '/playlet/playlet/create', 'App\Controller\playlet\PlayletController@create');//短剧创建
    Router::addRoute(['POST'], '/playlet/playlet/update/{id:\d+}', 'App\Controller\playlet\PlayletController@update');//短剧更新
    Router::addRoute(['POST'], '/playlet/playlet/mergePlaylet', 'App\Controller\playlet\PlayletController@mergePlaylet');//短剧合并
    Router::addRoute(['DELETE'], '/playlet/playlet/delete/{id:\d+}', 'App\Controller\playlet\PlayletController@delete');//短剧删除
    Router::addRoute(['GET'], '/playlet/playlet/episodesList/{id:\d+}', 'App\Controller\playlet\PlayletController@episodesList');//短剧查看剧集
    Router::addRoute(['POST'], '/playlet/playlet/batchUpload/{id:\d+}', 'App\Controller\playlet\PlayletController@batchUpload'); //短剧批量上传集数
    Router::addRoute(['POST'], '/playlet/playlet/limitNumber/{id:\d+}', 'App\Controller\playlet\PlayletController@limitNumber');//短剧规定推广链接的付费集数
    Router::addRoute(['POST'], '/playlet/playlet/registrationTime/{id:\d+}', 'App\Controller\playlet\PlayletController@registrationTime');//短剧授权数到期时间
    Router::addRoute(['POST'], '/playlet/playlet/clickOnline/{id:\d+}', 'App\Controller\playlet\PlayletController@clickOnline');//集数上线
    Router::addRoute(['POST'], '/playlet/playlet/clickOffline/{id:\d+}', 'App\Controller\playlet\PlayletController@clickOffline');//集数下载
    Router::addRoute(['POST'], '/playlet/playlet/weComBind/{id:\d+}', 'App\Controller\playlet\PlayletController@weComBind');//短剧与企业微信绑定
    //短剧提审列表
    Router::addRoute(['GET'], '/playlet/playletExamine', 'App\Controller\playlet\PlayletExamineController@index'); //短剧提审列表
    Router::addRoute(['POST'], '/playlet/playletExamine/auditDrama/{id:\d+}/{type:\d+}', 'App\Controller\playlet\PlayletExamineController@auditDrama'); //短剧提审
    Router::addRoute(['GET'], '/playlet/playletExamine/episodesIndex/{id:\d+}/{type:\d+}', 'App\Controller\playlet\PlayletExamineController@episodesIndex'); //短剧剧集列表
    Router::addRoute(['POST'], '/playlet/playletExamine/examine', 'App\Controller\playlet\PlayletExamineController@examine');//集数审核
    Router::addRoute(['POST'], '/playlet/playletExamine/replaceOnlineDrama/{id:\d+}/{type:\d+}', 'App\Controller\playlet\PlayletExamineController@replaceOnlineDrama');//替换上线审核
    //剧集集数列表
    Router::addRoute(['GET'], '/playlet/episodes', 'App\Controller\playlet\PlayletEpisodesController@index'); //集数列表
    Router::addRoute(['POST'], '/playlet/episodes/create', 'App\Controller\playlet\PlayletEpisodesController@create');//集数创建
    Router::addRoute(['POST'], '/playlet/episodes/update/{id:\d+}', 'App\Controller\playlet\PlayletEpisodesController@update');//剧集更新
    Router::addRoute(['DELETE'], '/playlet/episodes/delete/{id:\d+}', 'App\Controller\playlet\PlayletEpisodesController@delete');//集数删除
    //充值模板列表
    Router::addRoute(['GET'], '/playlet/rechargeTemplate/copy/{id:\d+}', 'App\Controller\playlet\RechargeTemplateController@copy'); //推广链接列表
    Router::addRoute(['GET'], '/playlet/rechargeTemplate', 'App\Controller\playlet\RechargeTemplateController@index'); //充值模板列表
    Router::addRoute(['POST'], '/playlet/rechargeTemplate/create', 'App\Controller\playlet\RechargeTemplateController@create');//充值模板创建
    Router::addRoute(['POST'], '/playlet/rechargeTemplate/update/{id:\d+}', 'App\Controller\playlet\RechargeTemplateController@update');//充值模板更新
    Router::addRoute(['DELETE'], '/playlet/rechargeTemplate/delete/{id:\d+}', 'App\Controller\playlet\RechargeTemplateController@delete');//充值模板删除
    //推广链接列表
    Router::addRoute(['GET'], '/playlet/dataSpread/copy/{id:\d+}', 'App\Controller\playlet\DataSpreadController@copy'); //推广链接列表
    Router::addRoute(['GET'], '/playlet/dataSpread', 'App\Controller\playlet\DataSpreadController@index'); //推广链接列表
    Router::addRoute(['POST'], '/playlet/dataSpread/create', 'App\Controller\playlet\DataSpreadController@create');//推广链接创建
    Router::addRoute(['POST'], '/playlet/dataSpread/update/{id:\d+}', 'App\Controller\playlet\DataSpreadController@update');//推广链接更新
    Router::addRoute(['DELETE'], '/playlet/dataSpread/delete/{id:\d+}', 'App\Controller\playlet\DataSpreadController@delete');//推广链接删除
    Router::addRoute(['POST'], '/playlet/dataSpread/monitoringLink/{id:\d+}', 'App\Controller\playlet\DataSpreadController@monitoringLink');//推广连接-监测链接
    Router::addRoute(['POST'], '/playlet/dataSpread/batchSettings', 'App\Controller\playlet\DataSpreadController@batchSettings');//推广链接批量修改
    Router::addRoute(['POST'], '/playlet/dataSpread/accountBind/{id:\d+}', 'App\Controller\playlet\DataSpreadController@accountBind');//推广链接绑定广告ID
    Router::addRoute(['POST'], '/playlet/dataSpread/accountBind/{id:\d+}/{type:\d+}', 'App\Controller\playlet\DataSpreadController@accountBind');//推广链接绑定广告ID
    //回传监测配置列表
    Router::addRoute(['GET'], '/playlet/dataBackhaulSetting', 'App\Controller\playlet\DataBackhaulSettingController@index'); //回传监测配置列表
    Router::addRoute(['POST'], '/playlet/dataBackhaulSetting/create', 'App\Controller\playlet\DataBackhaulSettingController@create');//回传监测配置创建
    Router::addRoute(['POST'], '/playlet/dataBackhaulSetting/update/{id:\d+}', 'App\Controller\playlet\DataBackhaulSettingController@update');//回传监测配置更新
    Router::addRoute(['DELETE'], '/playlet/dataBackhaulSetting/delete/{id:\d+}', 'App\Controller\playlet\DataBackhaulSettingController@delete');//回传监测配置删除
    //小程序导航配置
    Router::addRoute(['GET'], '/playlet/playletBlocks', 'App\Controller\playlet\PlayletBlocksController@index'); //小程序导航配置列表
    Router::addRoute(['POST'], '/playlet/playletBlocks/create', 'App\Controller\playlet\PlayletBlocksController@create');//小程序导航配置创建
    Router::addRoute(['POST'], '/playlet/playletBlocks/update/{id:\d+}', 'App\Controller\playlet\PlayletBlocksController@update');//小程序导航配置更新
    Router::addRoute(['DELETE'], '/playlet/playletBlocks/delete/{id:\d+}', 'App\Controller\playlet\PlayletBlocksController@delete');//小程序导航配置删除
    //小程序导航配置
    Router::addRoute(['GET'], '/playlet/playletBlocksRanking', 'App\Controller\playlet\PlayletBlocksRankingController@index'); //小程序导航配置列表
//    Router::addRoute(['POST'], '/playlet/playletBlocksRanking/create', 'App\Controller\playlet\PlayletBlocksRankingController@create');//小程序导航配置创建
    Router::addRoute(['POST'], '/playlet/playletBlocksRanking/update/{id:\d+}', 'App\Controller\playlet\PlayletBlocksRankingController@update');//小程序导航配置更新
//    Router::addRoute(['DELETE'], '/playlet/playletBlocksRanking/delete/{id:\d+}', 'App\Controller\playlet\PlayletBlocksRankingController@delete');//小程序导航配置删除
    //退款列表
    Router::addRoute(['GET'], '/playlet/paymentRefund', 'App\Controller\playlet\PaymentRefundController@index'); //退款列表
    //申请退款
    Router::addRoute(['GET'], '/playlet/paymentRefund/refundOrder/{id:\d+}', 'App\Controller\playlet\PaymentRefundController@refundOrder'); //退款操作
    //客诉列表
    Router::addRoute(['GET'], '/playlet/complaint', 'App\Controller\playlet\ComplaintsController@index'); //客诉列表
    //技术调用token
    Router::addRoute(['GET'], '/playlet/complaint/getApplet/{id:\d+}/{type:\d+}', 'App\Controller\playlet\ComplaintsController@getApplet'); //技术调用token
    //上传图片
    Router::addRoute(['POST'], '/playlet/sts/uploadPath', 'App\Controller\playlet\StsController@uploadPath'); //上传图片

    //banner
    Router::addRoute(['GET'], '/playlet/baseBanner', 'App\Controller\playlet\BaseBannerController@index'); //banner列表
    Router::addRoute(['POST'], '/playlet/baseBanner/create', 'App\Controller\playlet\BaseBannerController@create');//banner创建
    Router::addRoute(['POST'], '/playlet/baseBanner/update/{id:\d+}', 'App\Controller\playlet\BaseBannerController@update');//banner更新
    Router::addRoute(['DELETE'], '/playlet/baseBanner/delete/{id:\d+}', 'App\Controller\playlet\BaseBannerController@delete');//banner删除
    //投放短剧列表
    Router::addRoute(['GET'], '/delivery/playlet', 'App\Controller\delivery\PlayletController@index'); //投放短剧列表
    Router::addRoute(['GET'], '/delivery/playlet/episodesList/{id:\d+}', 'App\Controller\delivery\PlayletController@episodesList');//短剧查看剧集
    //充值模板列表
    Router::addRoute(['GET'], '/delivery/rechargeTemplate/copy/{id:\d+}', 'App\Controller\delivery\RechargeTemplateController@copy'); //推广链接列表
    Router::addRoute(['GET'], '/delivery/rechargeTemplate', 'App\Controller\delivery\RechargeTemplateController@index'); //充值模板列表
    Router::addRoute(['POST'], '/delivery/rechargeTemplate/create', 'App\Controller\delivery\RechargeTemplateController@create');//充值模板创建
    Router::addRoute(['POST'], '/delivery/rechargeTemplate/update/{id:\d+}', 'App\Controller\delivery\RechargeTemplateController@update');//充值模板更新
    Router::addRoute(['DELETE'], '/delivery/rechargeTemplate/delete/{id:\d+}', 'App\Controller\delivery\RechargeTemplateController@delete');//充值模板删除
    //推广链接列表
    Router::addRoute(['GET'], '/delivery/dataSpread/copy/{id:\d+}', 'App\Controller\delivery\DataSpreadController@copy'); //推广链接列表
    Router::addRoute(['GET'], '/delivery/dataSpread', 'App\Controller\delivery\DataSpreadController@index'); //推广链接列表
    Router::addRoute(['POST'], '/delivery/dataSpread/create', 'App\Controller\delivery\DataSpreadController@create');//推广链接创建
    Router::addRoute(['POST'], '/delivery/dataSpread/update/{id:\d+}', 'App\Controller\delivery\DataSpreadController@update');//推广链接更新
    Router::addRoute(['DELETE'], '/delivery/dataSpread/delete/{id:\d+}', 'App\Controller\delivery\DataSpreadController@delete');//推广链接删除
    Router::addRoute(['POST'], '/delivery/dataSpread/monitoringLink/{id:\d+}', 'App\Controller\delivery\DataSpreadController@monitoringLink');//推广连接-监测链接
    Router::addRoute(['POST'], '/delivery/dataSpread/batchSettings', 'App\Controller\delivery\DataSpreadController@batchSettings');//推广链接批量修改
    Router::addRoute(['POST'], '/delivery/dataSpread/accountBind/{id:\d+}', 'App\Controller\delivery\DataSpreadController@accountBind');//推广链接绑定广告ID
    Router::addRoute(['POST'], '/delivery/dataSpread/accountBind/{id:\d+}/{type:\d+}', 'App\Controller\delivery\DataSpreadController@accountBind');//推广链接绑定广告ID
    //回传监测配置列表
    Router::addRoute(['GET'], '/delivery/dataBackhaulSetting', 'App\Controller\delivery\DataBackhaulSettingController@index'); //回传监测配置列表
    Router::addRoute(['POST'], '/delivery/dataBackhaulSetting/create', 'App\Controller\delivery\DataBackhaulSettingController@create');//回传监测配置创建
    Router::addRoute(['POST'], '/delivery/dataBackhaulSetting/update/{id:\d+}', 'App\Controller\delivery\DataBackhaulSettingController@update');//回传监测配置更新
    Router::addRoute(['DELETE'], '/delivery/dataBackhaulSetting/delete/{id:\d+}', 'App\Controller\delivery\DataBackhaulSettingController@delete');//回传监测配置删除
    //订单列表
    Router::addRoute(['GET'], '/delivery/payment', 'App\Controller\delivery\PaymentController@index'); //订单列表
    Router::addRoute(['POST'], '/delivery/payment/backhaul/{id:\d+}', 'App\Controller\delivery\PaymentController@backhaul'); //订单手动回传
    Router::addRoute(['GET'], '/delivery/payment/backhaul/{id:\d+}', 'App\Controller\delivery\PaymentController@backhaul'); //订单手动回传
    Router::addRoute(['POST'], '/delivery/payment/batchBackhaul', 'App\Controller\delivery\PaymentController@batchBackhaul'); //订单批量回传

    //查询线上订单详情
    Router::addRoute(['GET'], '/delivery/payment/getOrderDetail/{id:\d+}', 'App\Controller\delivery\PaymentController@getOrderDetail'); //查询线上订单详情
    //线上订单退款
    Router::addRoute(['POST'], '/delivery/payment/refundOrder', 'App\Controller\delivery\PaymentController@refundOrder'); //线上订单退款
    //订单统计
    Router::addRoute(['GET'], '/delivery/OrderStatistics', 'App\Controller\delivery\OrderStatisticsController@index'); //订单统计
    //订单实时统计
    Router::addRoute(['GET'], '/delivery/RealOrderStatistics', 'App\Controller\delivery\RealOrderStatisticsController@index'); //订单统计
    //推广链接统计
    Router::addRoute(['GET'], '/delivery/SpreadStatistics', 'App\Controller\delivery\SpreadStatisticsController@index'); //推广链接
    //推广链接实时统计
    Router::addRoute(['GET'], '/delivery/RealSpreadStatistics', 'App\Controller\delivery\RealSpreadStatisticsController@index'); //订单统计
    //用户链接统计
    Router::addRoute(['GET'], '/delivery/UserStatistics', 'App\Controller\delivery\UserStatisticsController@index'); //用户链接


    //短剧绑定列表
    Router::addRoute(['GET'], '/playlet/playletbind', 'App\Controller\playlet\PlayletBindController@index'); //短剧绑定
    Router::addRoute(['POST'], '/playlet/playletbind/create', 'App\Controller\playlet\PlayletBindController@create');//短剧绑定创建
    Router::addRoute(['POST'], '/playlet/playletbind/update/{id:\d+}', 'App\Controller\playlet\PlayletBindController@update');//短剧绑定修改
    Router::addRoute(['DELETE'], '/playlet/playletbind/delete/{id:\d+}', 'App\Controller\playlet\PlayletBindController@delete');//短剧绑定删除
    //CPS
    Router::addRoute(['GET'], '/statistics/statistics', 'App\Controller\statistics\StatisticsController@index'); //CPS
},
    ['middleware' => [\App\Middleware\AuthMiddleware::class,App\Middleware\ValidateMiddleware::class,App\Middleware\UserOperateMiddleware::class]]
);
